<Window x:Class="MimeCloud.AssetManagement.DigitalLibrary.Dialogs.LatestAssets"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="LatestAssets" Height="300" Width="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"></ColumnDefinition>
            <ColumnDefinition Width="3"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <GridSplitter Grid.Column="1" 
                Height="Auto" Width="Auto" HorizontalAlignment="Stretch" 
                VerticalAlignment="Stretch" />
        <ListBox Grid.Column="0" Name="displayAssetList">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Vertical" />
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.Template>
                <ControlTemplate>
                    <Grid>
                        <ScrollViewer>
                            <ItemsPresenter />
                        </ScrollViewer>
                    </Grid>
                </ControlTemplate>
            </ListBox.Template>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <Image x:Name="ItemImage" Stretch="Uniform" MaxWidth="100" MaxHeight="130" Source="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=thumbimg}" />
                        <TextBlock x:Name="ItemDisplayName" Text="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=filename}" />
                        <TextBlock x:Name="ItemDisplayContent" Text="{Binding Converter={StaticResource ThumbConvert}, ConverterParameter=childdetail}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</Window>
